<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('admin/login','Admin\IndexController@login');

Route::get('captcha/{tmp}','Admin\IndexController@captcha');

Route::post('admin/query','Admin\IndexController@query');

Route::group(['middleware' => 'admin'], function () {
	
	Route::get('/admin','Admin\IndexController@index');

	Route::get('/admin/user','Admin\UserController@index');
});


Route::get('/home','Home\IndexController@index');

Route::get('/home/mobile','Home\MobileController@index');

Route::get('/home/mobile/show/{id}','Home\MobileController@show');